﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SPM.DTL;
using SPM.DAL;

namespace SPM.BL
{
    public class VoluntarioBo:BusinessObject<VoluntarioDto>
    {

        protected override SPM.DAL.DataAccessObject<VoluntarioDto> CreateDao()
        {
            return new VoluntarioDao();
        }

        protected override bool Validate(VoluntarioDto voluntario)
        {
            bool retorno = false;
            if (voluntario != null)
            {
                if (voluntario.Rg != null)
                    retorno = true;
            }
            return retorno;
        }
    }
}
